close all;
clear all;

fid=textread('data3.txt','%s');
A=cell2mat(fid);
position=double.empty(0,2);
data1=recive(A);
[a,b]=size(data1);
for i=1:a
    data1(i,2)=roundn((data1(i,2)/1000),-3);
end
for i=1:a
    position(i,1)=data1(i,2)*sin(data1(i,1));
    position(i,2)=data1(i,2)*cos(data1(i,1));
end
save('data1.mat','data1');


